package com.sync.data.mce.repository;

import com.sync.data.mce.entity.MceBasePosition;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MceBasePositionRepository extends JpaRepository<MceBasePosition, String>, JpaSpecificationExecutor<MceBasePosition>  {

    List<MceBasePosition> findByIdInOrderByCreateTimeDesc(List<String> ids);

    List<MceBasePosition> findByIdInAndIsActive(List<String> ids, int isActive);
}
